/* Base Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1 {
    color: #444;
    text-align: center;
    margin-bottom: 20px;
}

/* Form Styles */
form {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
}

.form-row > label {
    flex: 1;
    min-width: 120px;
    margin: 5px;
}

input[type="text"],
input[type="number"],
select {
    flex: 2;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

input[type="checkbox"] {
    margin-left: 5px;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #5cb85c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #4cae4c;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    text-align: left;
    padding: 8px;
}

th {
    background-color: #f8f8f8;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

#queryBtn{
    width: 40%;
    margin-top: 20px;
    margin-right: 190px;
}

#queryMyBtn{
    width: 40%;
}

#addBtn{
    width: 40%;
}

/* Responsive Design */
@media screen and (max-width: 800px) {
    .form-row {
        flex-direction: column;
    }

    .form-row > label {
        flex-basis: 100%;
    }

    button {
        width: auto;
    }
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-width: 80%; /* Adjust the width of the modal as needed */
    width: 400px;
}

.modal form {
    display: flex;
    flex-direction: column;
}

.modal label,
.modal select,
.modal input {
    margin-bottom: 10px;
}

.modal button {
    width: auto;
    align-self: flex-end;
}

.action-button {
    width: auto;
    margin-right: 10px;
    margin-left: 10px;
    padding: 8px; /* Adjust the padding as needed */
    font-size: 14px; /* Adjust the font size as needed */
}